package com.xnyzc.lhy.common.penum.order;


/**
 * @Author: huxuekuo
 * @Date: 2019-08-07 15:11
 * @Description:
 */
public enum EOrderOtherPrice {

    highSpeedFee(0, "高速费"),
    bridgeToll(1, "过桥费"),
    parkingFee(2, "停车费"),
    otherFee(3, "其他");

    private Integer type;
    private String value;

    EOrderOtherPrice(Integer type, String value) {
        this.type = type;
        this.value = value;
    }

    public static EOrderOtherPrice findById(Integer type) {
        EOrderOtherPrice[] values = EOrderOtherPrice.values();
        for (EOrderOtherPrice value : values) {
            if (value.type.equals(type)) {
                return value;
            }
        }
        return null;
    }




    public String getValue() {
        return this.value;
    }

    public Integer getType() {
        return this.type;
    }

    public int getTypeInt() {
        return this.type;
    }
}
